package com.kingmed.kmss.common.enums.bpmn;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 审批类型 - 对应业务上的操作类型，如果审批后更新结果才入库/生效
 * 
 *
 */
@Getter
@AllArgsConstructor
public enum ProcessType {

    
    NORMAL(0, "NORMAL"),
    EDIT(1, "EDIT"),
    DELETE(2, "DELETE"),
    // 保留类型
    RESERVE1(3, "RESERVE1"),
    RESERVE2(4, "RESERVE2");
   
	
	private final Integer code;
    private final String name;
    
    public Boolean isDelete() {
    	
    	if (code != null && code == DELETE.code) {
    		return true;
    	}
    	
    	return false;
    }
}
